home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
TCL1
/
CDICTION
/
CSMARTBU.H
< prev
next >
Wrap
Text File
|
1989-09-15
|
1KB
|
37 lines
/*****************************************************************************
CSmartButton - subclass of CButton with some minor enhancements. These are:
Ñ Can be enabled, disabled with Enable, Disable, or SetEnable
Ñ Provides SetHilite method to call HiliteControl
Ñ Overrides the default Activate() to invalidate instead of
redrawing the control. The standard methods handles non-rectangular
controls on non-white backgrounds poorly.
by Dan Podwall - you may do anything you please with this code except
charge for it, with the exception of normal network download charges.
/*****************************************************************************/
#define _H_CSmartButton
#include "CButton.h"
#include "defs.h"
struct CSmartButton : CButton
{
Boolean enabled;
virtual void ISmartButton(Int16 CNTLid, CView *anEnclosure,
CBureaucrat *aSupervisor);
virtual void Draw( Rect *area);
virtual void Activate( void);
virtual void Deactivate( void);
virtual void SetHilite( Int16 hiliteVal);
virtual void Enable( void);
virtual void Disable( void);
virtual void SetEnable( Int16 enableFlag);
};